Skip to content

gh-96096: Add undocumented SQLITE_OK/DENY/IGNORE sqlite3 constants#96134

Merged
erlend-aasland merged 4 commits into
python:mainfrom
CAM-Gerlach:sqlite3-document-sqlite-constants
Aug 23, 2022
Merged

gh-96096: Add undocumented SQLITE_OK/DENY/IGNORE sqlite3 constants#96134
erlend-aasland merged 4 commits into
python:mainfrom
CAM-Gerlach:sqlite3-document-sqlite-constants

Conversation

@CAM-Gerlach

@CAM-Gerlach CAM-Gerlach commented Aug 20, 2022

Copy link
Copy Markdown
Member

As discussed in #96096 , add a formal description of the SQLITE_OK/SQLITE_DENY/SQLITE_IGNORE constants referenced in Connection.set_authorizer(), and update that method to elide duplicate content.

Maybe some mention should be made of SQLITE_OK's evident broader role? I'm not really well informed about the subject matter on this one to have any opinion on that.

Comment thread Doc/library/sqlite3.rst Outdated
Comment thread Doc/library/sqlite3.rst Outdated
@erlend-aasland erlend-aasland changed the title gh-96096: Add previously undocumented SQLITE_OK/DENY/IGORNE sqlite3 constants gh-96096: Add undocumented SQLITE_OK/DENY/IGNORE sqlite3 constants Aug 22, 2022
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Comment thread Doc/library/sqlite3.rst Outdated
Comment thread Doc/library/sqlite3.rst Outdated
Comment thread Doc/library/sqlite3.rst
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
@erlend-aasland

Copy link
Copy Markdown
Contributor

Let's land this; thanks for the PR, CAM, and thanks for the review Ezio! I'll try and come up with something that can make the whole authoriser section more accurate (and readable 😆).

@erlend-aasland erlend-aasland merged commit d6259c5 into python:main Aug 23, 2022
@miss-islington

Copy link
Copy Markdown
Contributor

Thanks @CAM-Gerlach for the PR, and @erlend-aasland for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.11.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 23, 2022
…nts (pythonGH-96134)

Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
(cherry picked from commit d6259c5)

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
@bedevere-bot

Copy link
Copy Markdown

GH-96202 is a backport of this pull request to the 3.11 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.11 only security fixes label Aug 23, 2022
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 23, 2022
…nts (pythonGH-96134)

Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
(cherry picked from commit d6259c5)

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
@bedevere-bot

Copy link
Copy Markdown

GH-96203 is a backport of this pull request to the 3.10 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.10 only security fixes label Aug 23, 2022
Comment thread Doc/library/sqlite3.rst
Flags that should be returned by the *authorizer_callback* callable
passed to :meth:`Connection.set_authorizer`, to indicate whether:

* Access is allowed (:const:`!SQLITE_OK`),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I forgot the accidental comma! Note to self to fix it in an upcoming PR.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Silly mistake; my fault again for being sloppy here

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No problem, you're fine!

miss-islington added a commit that referenced this pull request Aug 23, 2022
…H-96134)

Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
(cherry picked from commit d6259c5)

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
miss-islington added a commit that referenced this pull request Aug 23, 2022
…H-96134)

Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
(cherry picked from commit d6259c5)

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
mdboom pushed a commit to mdboom/cpython that referenced this pull request Aug 24, 2022
…nts (python#96134)

Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip news topic-sqlite3

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants